<?php
/**
 * Created by PhpStorm.
 * User: Admin
 * Date: 2020/1/6
 * Time: 17:18
 */
namespace app\model;

use think\Model;

class Demo extends Model{

    public function getStatusTestAttr($value, $data){

        $staus = [
            0=>'待审核',
            1=>'正常',
            2=>'删除'
        ];
        return $staus[$data['status']];
    }
}